//
//  OrderProductioninfoTableViewCell.m
//  智积分
//
//  Created by apple on 2018/5/16.
//  Copyright © 2018年 Cynic. All rights reserved.
//

#import "OrderProductioninfoTableViewCell.h"

@implementation OrderProductioninfoTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

/*@property (nonatomic ,retain)UILabel *name;
 @property (nonatomic ,retain)UIImageView *img;
 @property (nonatomic ,retain)UILabel *price;
 @property (nonatomic ,retain)UILabel *num;
 @property (nonatomic ,retain)UILabel *des;*/

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    _name = [UILabel CXCreateLabelwithFrame:CGRectMake(78, 12, cx_wid - 78 - 32, 18) withtTitle:@"" inColor:[UIColor clearColor] withHasBottomLayer:NO withbottomlayerHit:0 withBottomLayercolor:[UIColor clearColor] withLabelfont:13 withlabelTextColor:[UIColor blackColor] withReturnLabel:YES beyoundview:self.contentView];
    _name.numberOfLines = 2;
    _price = [UILabel CXCreateLabelwithFrame:CGRectMake(78, 54, cx_wid / 2 - 78, 16) withtTitle:@"" inColor:[UIColor clearColor] withHasBottomLayer:NO withbottomlayerHit:0 withBottomLayercolor:[UIColor clearColor] withLabelfont:16 withlabelTextColor:[CXSinglerModel colorWithHex:@"F75D42" alpha:1] withReturnLabel:YES beyoundview:self.contentView];
    _num = [UILabel CXCreateLabelwithFrame:CGRectMake(cx_wid - 15 - 20, 54, 20, 16) withtTitle:@"" inColor:[UIColor clearColor] withHasBottomLayer:NO withbottomlayerHit:0 withBottomLayercolor:[UIColor clearColor] withLabelfont:16 withlabelTextColor:[CXSinglerModel colorWithHex:@"999999" alpha:1] withReturnLabel:YES beyoundview:self.contentView];
    _des = [UILabel CXCreateLabelwithFrame:CGRectMake(80, 95, cx_wid - 80 - 32, 16) withtTitle:@"" inColor:[UIColor clearColor] withHasBottomLayer:NO withbottomlayerHit:0 withBottomLayercolor:[UIColor clearColor] withLabelfont:13 withlabelTextColor:[CXSinglerModel colorWithHex:@"999999" alpha:1] withReturnLabel:YES beyoundview:self.contentView];
    _des.numberOfLines = 6;
    UILabel *titlelabel = [UILabel CXCreateLabelwithFrame:CGRectMake(10, 95, 60, 16) withtTitle:@"规格参数" inColor:[UIColor clearColor] withHasBottomLayer:NO withbottomlayerHit:0 withBottomLayercolor:[UIColor clearColor] withLabelfont:14 withlabelTextColor:[CXSinglerModel colorWithHex:@"666666" alpha:1] withReturnLabel:YES beyoundview:self.contentView];
    
    UIView *layerview = [[UIView alloc] initWithFrame:CGRectMake(12, 84, cx_wid - 24, 1)];
    layerview.backgroundColor = [CXSinglerModel colorWithHex:@"f3f4f6" alpha:1];
    [self.contentView addSubview:layerview];
    
    UIView *bottomlayer = [[UIView alloc] initWithFrame:CGRectZero];
    bottomlayer.backgroundColor = [CXSinglerModel colorWithHex:@"f3f4f6" alpha:1];
    [self.contentView addSubview:bottomlayer];
    [bottomlayer mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(0);
        make.size.mas_equalTo(CGSizeMake(cx_wid, 1));
        make.left.mas_equalTo(0);
    }];
    
    titlelabel.textAlignment = _num.textAlignment = NSTextAlignmentCenter;
    [self.contentView addSubview:titlelabel];
    _img = [[UIImageView alloc] initWithFrame:CGRectMake(12, 12, 60, 60)];
    _img.backgroundColor = [UIColor lightGrayColor];
    [self.contentView addSubview:_img];
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
